package com.jzo2o.customer.controller.agency;


import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.CertificationAuditReqDTO;
import com.jzo2o.customer.model.dto.response.AgencyCertificationResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController("agencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 机构认证相关接口")
public class CertificationAuditController {

    @Resource
    private IAgencyCertificationService agencyCertificationService;

    @PostMapping
    @ApiOperation("机构认证，添加信息")
    public AgencyCertificationResDTO certificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO auditAddReqDTO){
        AgencyCertificationResDTO agencyCertificationResDTO=  agencyCertificationService.certificationAudit(auditAddReqDTO);
        return agencyCertificationResDTO;

    }

}
